package com.atguigu.oss.entity;


import lombok.Data;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class FileProperty implements InitializingBean {
    @Value("${file.upload.path}")
    private String filePath;

    public static String FILE_PATH;
    @Override
    public void afterPropertiesSet() throws Exception {
        FILE_PATH = filePath;
    }
}
